package org.lanyu.springainovel.novel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 拆书任务实体�? */
@Data
@TableName("book_analysis_task")
public class BookAnalysisTask {

    /**
     * 任务ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 项目ID
     */
    @TableField("project_id")
    private Long projectId;

    /**
     * 任务类型 (FULL_ANALYSIS, CHAPTER_ANALYSIS)
     */
    @TableField("task_type")
    private String taskType;

    /**
     * 状�?(PENDING, PROCESSING, COMPLETED, FAILED)
     */
    private String status;

    /**
     * 进度百分�?     */
    private Integer progress;

    /**
     * 开始时�?     */
    @TableField("start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;

    /**
     * 错误信息
     */
    @TableField("error_message")
    private String errorMessage;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
}
